Design of a Class Library for Association Relationships
نویسنده
چکیده
Association is an important relationship that is supported in both UML and entity relationship database modeling tools. However, there is no language or library support in current object-oriented languages for implementing an association relationship. Instead, a complex implementation using references or collections of references must be handcrafted and laboriously maintained each time an association relationship is needed. In this paper, we develop an approach to supporting the association relationship through the design of a reusable class library that hides most of the complexity and guarantees that the consistency of the relationship is maintained automatically. Our current library implementation in C# draws on generic types with runtime type instantiation, runtime reflection on type parameters, annotations on classes, and runtime code generation. This set of language features seems to be necessary to provide effective support for association relationships.
منابع مشابه
Exploiting Associations between Class Labels in Multi-label Classification
Multi-label classification has many applications in the text categorization, biology and medical diagnosis, in which multiple class labels can be assigned to each training instance simultaneously. As it is often the case that there are relationships between the labels, extracting the existing relationships between the labels and taking advantage of them during the training or prediction phases ...
متن کاملAre Communication Skills as effective factors on Sibling Relationships of Adolescents with Down Syndrome?
Objectives: Sibling relationships are often among the longest lasting relationships between people, and more than two-thirds of adolescents with siblings introduce their siblings as the most important people in their life. Therefore, the aim of this study was to evaluate the effectiveness of communication skills on sibling relationships among the adolescents with Down syndrome. Methods: <a c...
متن کاملApplication of Kansei engineering and data mining in the Thai ceramic manufacturing
Ceramic is one of the highly competitive products in Thailand. Many Thai ceramic companies are attempting to know the customer needs and perceptions for making favorite products. To know customer needs is the target of designers and to develop a product that must satisfy customers. This research is applied Kansei Engineering (KE) and Data Mining (DM) into the customer driven product design proc...
متن کاملImplementing First Class Relationships in Java
Relationships have been an essential component of OO design since the 90s but OO languages still do not support firstclass relationships. Hence, programmers must implement relationships in an ad-hoc fashion which results in unnecessarily complex code. We have developed a new model for relationships in OO which distinguishes tuples and relationships (mutable sets of tuples) and supports both as ...
متن کاملRelationships between Darboux Integrability and Limit Cycles for a Class of Able Equations
We consider the class of polynomial differential equation x&= , 2(,)(,)(,)nnmnmPxyPxyPxy++++2(,)(,)(,)nnmnmyQxyQxyQxy++&=++. For where and are homogeneous polynomials of degree i. Inside this class of polynomial differential equation we consider a subclass of Darboux integrable systems. Moreover, under additional conditions we proved such Darboux integrable systems can have at most 1 limit cycle.
متن کامل